﻿<%@ Page Language="C#" %>

<%@ Import Namespace="wojilu" %>
<%@ Import Namespace="wojilu.View" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Domain" %>
<%@ Import Namespace="wojilu.Apps.Qycms.Service" %>

<%PowerGroup modelpowergroup = v.data("powergroup") as PowerGroup; %>
<%var bllPowerGroupService = new PowerGroupService(); %>

<!--会员列表-->
<ul class="listbottonul" id="listbottonul">
    <%if (bllPowerGroupService.powercheck("member", "memberadd", modelpowergroup))
      { %>
	<li class="menumain"><a id="addinfo" class="addinfo" onclick="javascript:parent.onbotton('_{botton_add_memberadd}','index.php?archive=membermain&action=memberadd&mlid=<%=ctx.getInt("mlid") %>&tab=true&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),false,'addinfo',self.frameElement.getAttribute('name'));"  href="#body" title="_{botton_add_memberadd}" hidefocus="true">_{botton_add_memberadd}</a></li>
	<%} %>
	<li class="menumain"><a id="selectall" class="selectall" href="javascript:select_change(true,'selectform','selectall','check_all')" title="_{selAll_botton}" hidefocus="true">_{selAll_botton}</a></li>
	<li class="menumain"><a id="bolt" href="#body" hidefocus="true" hidefocus="true">_{bolt_botton}</a>
		<ul class="menulist">
			<li><span class="menufont">_{membertype_botton}</span>
				<ul id="modeltablist">
					<li><a class="menunoclick" id="mcid0" href="#body" onclick="javascript:dbfilter('mcid','mcid',0,0,#{pubnum},'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
                    <% List<Member_Class> memberpuvlist = v.data("memberpuvlist") as List<Member_Class>; %>
					<% for (int i = 0; i < memberpuvlist.Count; i++){ %>
					<li><a class="menuclick" id="mcid<%=i %>" href="#body" onclick="javascript:dbfilter('mcid','mcid','<%=memberpuvlist[i].Id %>',<%=i %>,#{pubnum},'selectform','selectall','check_all')" title="<%=memberpuvlist[i].rankname %>" hidefocus="true"><%=memberpuvlist[i].rankname %></a></li>
					<%}%>
				</ul>
			</li>
			<li><span class="menufont">_{membermain_text_typeclass}</span>
				<ul>
					<li><a class="menunoclick" id="memisclass0" href="#body" onclick="javascript:dbfilter('memisclass','isclass',0,0,3,'selectform','selectall','check_all')" title="_{all_botton}" hidefocus="true">_{all_botton}</a></li>
					<li><a class="menuclick" id="memisclass1" href="#body" onclick="javascript:dbfilter('memisclass','isclass',1,1,3,'selectform','selectall','check_all')" title="_{membermain_text_class1}" hidefocus="true">_{membermain_text_class1}</a></li>
					<li><a class="menuclick" id="memisclass2" href="#body" onclick="javascript:dbfilter('memisclass','isclass',2,2,3,'selectform','selectall','check_all')" title="_{membermain_text_class2}" hidefocus="true">_{membermain_text_class2}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{ismoblie_title}</span>
				<ul>
					<li><a class="menunoclick" id="memismoblie0" href="#body" onclick="javascript:dbfilter('memismoblie','ismoblie',0,0,3,'selectform','selectall','check_all')" title="[%$ST.all_botton%]" hidefocus="true">[%$ST.all_botton%]</a></li>
					<li><a class="menuclick" id="memismoblie1" href="#body" onclick="javascript:dbfilter('memismoblie','ismoblie',1,1,3,'selectform','selectall','check_all')" title="[%$ST.ismoblie_title_ok%]" hidefocus="true">[%$ST.ismoblie_title_ok%]</a></li>
					<li><a class="menuclick" id="memismoblie2" href="#body" onclick="javascript:dbfilter('memismoblie','ismoblie',2,2,3,'selectform','selectall','check_all')" title="[%$ST.ismoblie_title_no%]" hidefocus="true">[%$ST.ismoblie_title_no%]</a></li>
				</ul>
			</li>
			<li><a class="menuclick" id="articleisorder0" href="#body" onclick="javascript:refreshurl('selectform')" title="_{all_botton}" hidefocus="true">_{getalllist_botton}</a></li>
		</ul>
	</li>
	<li class="menumain"><a id="search" href="javascript:parent.windowsdig('_{membermain_search_botton}','iframe:index.php?archive=membermain&action=search&iframename='+self.frameElement.getAttribute('name'),'580px','300px','iframe',true);" title="_{membermain_search_botton}" hidefocus="true">_{search_botton}</a></li>
    <%if (bllPowerGroupService.powercheck("member", "memberdel", modelpowergroup))
      { %>
	<li class="menumain"><a id="del" onclick="javascript:callrun('index.php?archive=membermain&action=memberdel','memberselectinfoid',false,null,null,'#{load}','_{del_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" href="#body" hidefocus="true">_{del_botton}</a></li>
	<%} %>
	<li class="menumain"><a id="refresh" href="#body" onclick="javascript:refresh('selectform','selectall','check_all');" title="_{refresh_botton}" hidefocus="true">_{refresh_botton}</a></li>
    <%if (bllPowerGroupService.powercheck("member", "memberedit", modelpowergroup))
      { %>
	<li class="menumain"><a id="setbotton" href="#body" hidefocus="true" title="_{set_botton}">_{set_botton}</a>
		<ul class="menulist">
			<li><span class="menufont">_{membermain_text_set_typeclass}</span>
				<ul>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('index.php?archive=membermain&action=setting','memberselectinfoid',true,'isclass',1,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{membermain_text_class1}" hidefocus="true">_{membermain_text_class1}</a></li>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('index.php?archive=membermain&action=setting','memberselectinfoid',true,'isclass',0,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="_{membermain_text_class2}" hidefocus="true">_{membermain_text_class2}</a></li>
				</ul>
			</li>
			<li><span class="menufont">_{membertypeset_botton}</span>
				<ul>
                    <% for (int i = 0; i < memberpuvlist.Count; i++){ %>
					<li><a class="menuclick" href="#body" onclick="javascript:callrun('index.php?archive=membermain&action=setting','memberselectinfoid',true,'mcid',<%=memberpuvlist[i].Id %>,'#{load}','_{update_messok}','_{select_no}',true,'_{run_ok}','_{run_no}','selectform','selectall','check_all');" title="<%=memberpuvlist[i].rankname %>" hidefocus="true"><%=memberpuvlist[i].rankname %></a></li>
					<%} %>
				</ul>
			</li>
		</ul>
	</li>
	<%} %>
</ul>